package com.ly.heart.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.common.core.domain.AjaxResult;
import com.ly.heart.domain.AssetsEntity;

/**
 * 资产卡片Service接口
 *
 * @author cxl
 * @date 2024-09-03
 */
public interface IAssetsService extends IService<AssetsEntity> {

    /**
     * 暂存资产卡片
     * @param assetsEntity
     * @return
     */
    AjaxResult draft(AssetsEntity assetsEntity);

    /**
     * 提交资产卡片
     * @param assetsEntity
     * @return
     */
    AjaxResult submit(AssetsEntity assetsEntity);

    /**
     * 修改资产卡片
     * @param assetsEntity
     * @return
     */
    AjaxResult update(AssetsEntity assetsEntity);

    /**
     * 变更资产卡片
     * @param newAssets
     * @return
     */
    AjaxResult change(AssetsEntity newAssets);

    /**
     * 查询资产卡片
     * @param id 资产卡片ID
     * @return 资产卡片
     */
    public AssetsEntity selectAssetsEntityById(String id);

    /**
     * 查询资产卡片列表
     *
     * @param assetsEntity 资产卡片
     * @return 资产卡片集合
     */
    public List<AssetsEntity> selectAssetsEntityList(AssetsEntity assetsEntity);

    /**
     * 新增资产卡片
     *
     * @param assetsEntity 资产卡片
     * @return 结果
     */
    public int insertAssetsEntity(AssetsEntity assetsEntity);

    /**
     * 修改资产卡片
     *
     * @param assetsEntity 资产卡片
     * @return 结果
     */
    public int updateAssetsEntity(AssetsEntity assetsEntity);

    /**
     * 批量删除资产卡片
     *
     * @param ids 需要删除的资产卡片ID
     * @return 结果
     */
    public int deleteAssetsEntityByIds(String[] ids);

    /**
     * 删除资产卡片信息
     *
     * @param id 资产卡片ID
     * @return 结果
     */
    public int deleteAssetsEntityById(String id);
}
